package bmptest.bmp.service.login;

import bmptest.bmp.entity.User;
import bmptest.bmp.mapper.login.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;
    public User Sel(int id){
        return userMapper.Sel(id);
    }

    public Integer countUsername(String username){
        return userMapper.countUsername(username);
    }

    public User findByUsername(String username){
        return userMapper.findByUsername(username);
    }

}
